package com.whz.annontateddemo;

/**
 * @Author: sinosoft
 * @Description: 带有一个参数的注解
 * @Date: Create in 16:35 2021/5/17
 * @Modified By:
 */
public class Sample2 {
    @ExceptionTest(ArithmeticException.class)
    public static void m1() {
        int i = 0;
        i = i / i;
    }
    @ExceptionTest(ArithmeticException.class)
    public static void m2() {
        int[] a = new int[0];
        int i = a[1];
    }
    @ExceptionTest(ArithmeticException.class)
    public static void m3() {

    }
}
